package com.note.service;

import com.note.mapper.NotLikesMapper;
import com.note.pojo.NotLikes;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NotLikeServiceImpl implements NotLikeService {
    @Autowired
    private NotLikesMapper notLikesMapper;

    @Override
    public void addNlikes(NotLikes notLikes) {
        notLikesMapper.inserNlikes(notLikes);
    }

    @Override
    public NotLikes getByUidCid(NotLikes notLikes) {
        return notLikesMapper.getByUidCid(notLikes);
    }

    @Override
    public void addoneNlikes(NotLikes notLikes) {
        notLikesMapper.updateNlikes(notLikes);
    }

    @Override
    public int sumNlikes(Integer noteid) {
        return notLikesMapper.sumNlikes(noteid);
    }
}
